﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RegisterPage.aspx.cs" Inherits="RegistrPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
    .tdTitle
    {
        text-align:right;
        font-size:12px;
    }
     .tdContent
    {
        text-align:left;
        font-size:12px;
    }
     .tdtip
    {
        text-align:left;
        font-size:12px;
    }
    .spanError
    {
        text-align:left;
        font-size:12px;
        color:Red;
    }
    </style>
    <script type="text/javascript">
        window.close();
        //window.open();
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style=" text-align:center">
     <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        
    <fieldset>
    <legend style="font-size:12px;">用户信息</legend>
    <asp:Label ID="lblState" runat="server" Text="" CssClass="spanError"></asp:Label>
    <br />
    <table>
        <tr style="height:36px">
            <td  class="tdTitle"><label>用户名</label></td>
            <td class="tdContent">
                <asp:TextBox ID="txtUserName" runat="server" 
                    ontextchanged="txtUserName_TextChanged" Width="150"></asp:TextBox>
            </td>
            <td class="tdtip">
                <asp:Label ID="lblUseName" runat="server" Text="*" CssClass="spanError"></asp:Label>
            </td>
        </tr>
        <tr style="height:36px">
            <td class="tdTitle"><label>密  码</label></td>
            <td class="tdContent">
                <asp:TextBox ID="txtPass1" runat="server" TextMode="Password" Width="150"></asp:TextBox>
            </td>
            <td class="tdtip">
                <asp:Label ID="lblPass1" runat="server" Text="*" CssClass="spanError"></asp:Label>
            </td>
        </tr>
        <tr style="height:36px">
            <td class="tdTitle"><label>确认密码</label></td>
            <td>
                <asp:TextBox ID="txtPass2" runat="server" TextMode="Password" Width="150"></asp:TextBox>
            </td>
            <td class="tdtip">
                <asp:Label ID="lblPass2" runat="server" Text="*" CssClass="spanError"></asp:Label>
            </td>
        </tr>
        <tr style="height:36px">
            <td class="tdTitle"><label>QQ</label></td>
            <td>
                <asp:TextBox ID="txtQQ" runat="server" Width="150"></asp:TextBox>
            </td>
            <td class="tdtip"><%--
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                    ControlToValidate="txtQQ" ErrorMessage="QQ号不正确" 
                    ValidationExpression="^\s*[.0-9]{5,10}\s*$"></asp:RegularExpressionValidator>--%>
            </td>
        </tr>
        <tr style="height:36px">
            <td class="tdTitle"><label>邮箱</label></td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server" ontextchanged="txtEmail_TextChanged" Width="150"></asp:TextBox>
            </td>
            <td class="tdtip">
                <%--
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtEmail" Display="Dynamic" ErrorMessage="邮箱格式不正确" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>--%>
            </td>
        </tr>
         <tr style="height:36px">
            <td class="tdTitle"><label>手机</label></td>
            <td>
                <asp:TextBox ID="txtTelPhone" runat="server" Width="150"></asp:TextBox>
            </td>
            <td class="tdtip">
               <%---
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="txtTelPhone" ErrorMessage="手机号码不正确" 
                    ValidationExpression="^[1]+[3,5,8]+\d{9}"></asp:RegularExpressionValidator>
                    --%>
            </td>
        </tr>
        <%--
        <tr style="height:36px">
            <td class="tdTitle"><label>软件名称</label>
            </td>
            <td>
                <asp:DropDownList ID="ddlSoft" runat="server" Width="150">
                </asp:DropDownList>
            </td>
            <td class="tdtip">
            </td>
        </tr>
        --%>
    </table>
    </fieldset>
    <br /><br />
    <asp:Button ID="btnReg" runat="server" Text="注 册" onclick="btnReg_Click" Width="120" Height="30"/>
    </ContentTemplate>
    </asp:UpdatePanel>              
    </div>
    </form>
</body>
</html>